<%@ page language="java" pageEncoding="UTF-8"  import="net.mysoft.framework.util.*,net.mysoft.framework.model.*,java.util.*,java.text.* ,java.util.*"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ page isELIgnored="false"%>

<script type="text/javascript" charset="utf-8">

	function view(xiangMuBH,songShenWJBH,shenHeR_ID){

		var p = parent.dagong.dialog({
			title : '审核意见查看',
			href : 'fangTanJYAction!fangTanJYYJMX.action?xiangMuBH='+xiangMuBH+'&bianHao='+songShenWJBH+'&shenHeR_ID='+shenHeR_ID,
			width : 1000,
			height : 650
		});
	}
	
	
	
	$(function loadList(){
		datagrid = $('#ftjylb_datagrid').datagrid({
			url:'flowTaskNodeAction!find.action?flowTemplateNodeID=${flowTemplateNodeID}&ftn_ID=${ftn_ID}&xiangMuJBXXBH=${xiangMuJBXXBH}&renWuJBXXBH=${renWuJBXXBH}',
			pagination : false,
			fitColumns : true,
			fit : false,
			fitColumns : true,
			idField : 'bianHao',
			columns : [ [ //字段定义
	           {
				    title : '<s:text name="bianHao"></s:text>',
					field : 'bianHao',
					width : 200,
					hidden : true
	           },
	           {
	        	   	title : '处理人',
					field : 'ftn_HandleUserName',
					width : 200
	           },
	           {
	        	   	title : '状态',
					field : 'ftn_Status',
					width : 200,
					formatter : function(value,obj,rowNum){  
						if(value!=undefined){
							if(value==2){
								return "已办";
							}
							return "待办";
						}
						return "待办";
					}
	           },
	           {
	        	   	title : '操作',
					field : '修改',
					width : 200,
					formatter : function(value,obj,rowNum){  
						var rows = datagrid.datagrid("getRows");
						var node = rows[rowNum];
						if(node.ftn_Status==1){
							return "<a href=javascript:void(0);userSelect('"+node.ftn_ID+"')>修改<a>";
						}
	  					return "";  
					}
	           }
			]]
		});
	});
		/**
	* 用户选择界面
	*/
	function userSelect(ftn_ID){
		var p = parent.dagong.dialog({
			title : '<s:text name="userSelect"></s:text>',
			href : 'flowTaskNodeAction!flowUserSelect.action?ftn_ID='+ftn_ID,
			width : 800,
			height : 500
		});
		share.data('userSelectDialog',p);
		share.data('form',$('#renWuFP_DGGJForm'));
	}
</script>

	<div title="审核意见查看" data-options="border:false" style="overflow-x:hidden;" >
			
		<form method="post" id="f" name="f">			
		<table id="ftjylb_datagrid"></table>			 	
		</form>
		
	</div>
